/**
 * @ClassName: DicDataStatusUtils
 * @author linsen
 * @date 2016-11-15
 */
package com.fzrskj.cloud.free.dic.utils;

import com.fzrskj.cloud.free.dic.bean.DicDataStatus;
import com.fzrskj.cloud.free.dic.dao.DicDataStatusDao;
import ms.core.object.CObject;

import java.util.List;
import java.util.Map;

public class DicDataStatusUtils extends CObject{
	
	//查询数据状态
	public DicDataStatus queryDDSByStatus(String hostType, String status, String statusType){
		DicDataStatusDao dao=new DicDataStatusDao();
		DicDataStatus ret=dao.queryDDSByStatus(hostType, status, statusType);
		this.setErrCode(dao.getErrCode());
		dao.dispose();
		return ret;
	}

	//查询数据状态
	public DicDataStatus queryDDSByValue(String hostType,String value,String statusType){
		DicDataStatusDao dao=new DicDataStatusDao();
		DicDataStatus ret=dao.queryDDSByValue(hostType, value, statusType);
		this.setErrCode(dao.getErrCode());
		dao.dispose();
		return ret;
	}

	//查询状态列表
	public List<DicDataStatus> queryDicDataStatusList(Map<String, Object> cdt){
		DicDataStatusDao dao=new DicDataStatusDao();
		List<DicDataStatus> list=dao.queryDicDataStatusList(cdt);
		this.setErrCode(dao.getErrCode());
		dao.dispose();
		return list;
	}
}
